/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ismaila.designPatterns.structural.flyweight;

/**
 *
 * @author Chelsea
 */
public class FlyweightMultiplier implements Flyweight {
    String operation;
public FlyweightMultiplier(){
    operation="multiplying";
    try{
    Thread.sleep(3000);
    }catch(InterruptedException e){
    e.printStackTrace();
    }
}
@Override
public String doMath(int a,int b){
return operation+" "+a+" and "+b+" : "+(a*b);
}

}
